<!--
 * @Author: ChunLai
 * @Date: 2023-08-14 13:47:04
 * @LastEditTime: 2025-09-02 15:00:16
 * @Description: 字段释义-险种类
 * @FilePath: \02.bldinsure\src\views\count\components\FieldDescMode.vue
-->
<template>
  <div class="icon_w16" @click="openDesc">
    <MsImgIcon size="16" name="tip" />
  </div>
</template>

<script>
export default {
  name: "FieldDescMode",
  props: {
    label: {
      type: String,
      default: () => "",
    },
    desc: {
      type: String,
      default: () => "",
    },
    type: {
      type: String,
      default: () => "text",
    },
  },
  data() {
    return {};
  },
  components: {},
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    openDesc() {
      this.$store.commit("common/SET_FIELD_MEAN_CONT", {
        label: `${this.label}`,
        desc: `${this.desc}`,
        type: `${this.type}`,
      });
    },
  },
};
</script>

<style lang="less" scoped>
.icon_w16 {
  display: flex;
  margin-left: 6px;
}
</style>
